home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjlist.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-05  |  1.8 KB  |  71 lines

  1. // Design Time Java List Box implementation. (HPP)
  2.  
  3. #ifndef _DTJLIST_HPP
  4. #define _DTJLIST_HPP
  5.  
  6. #include "dtjcomp.hpp"
  7.                       
  8. class METAEXPORTCLASSDEF DTJList : public DTJComponent
  9. {
  10.     public:
  11.         DTJList( const MetaObject * pMetaObj );
  12.         virtual ~DTJList();
  13.  
  14.     virtual WBool        GetHasInitialText() const;
  15.        
  16.     // Save and Load DTInfo
  17.  
  18.     virtual WBool        HasDTInfo();
  19.     virtual WBool        SaveDTInfo( SaveSource & );
  20.     virtual WBool        LoadDTInfo( SaveBlock *, WBool );
  21.        
  22.     //
  23.     // Style
  24.     //
  25.     //    The Windows style property of the associated Window.
  26.     //    This doesn't necessarily match GetWindow()->GetStyle()
  27.     //    because some styles are deferred until run-time (such
  28.     //    as WSVisible).
  29.  
  30.     virtual WStyle        GetStyle() const;
  31.     virtual WBool        SetStyle( WStyle stl, WBool clone=FALSE );
  32.  
  33.     //
  34.     // DefaultStyle
  35.     //
  36.     //    The style with which new instances are created.  Default
  37.     //    implementation returns GetWindow()->GetDefaultStyle().
  38.  
  39.     virtual WStyle        GetDefaultStyle() const;
  40.  
  41.     //
  42.     // ExtendedStyle
  43.     //
  44.     //    The ExtendedStyle property of the window nature.
  45.  
  46.     virtual WStyle        GetExtendedStyle() const;
  47.     virtual WBool        SetExtendedStyle( WStyle style, WBool clone=FALSE );
  48.  
  49.     //
  50.     // DefaultExtendedStyle
  51.     //
  52.     //    See DefaultStyle
  53.  
  54.     virtual WStyle        GetDefaultExtendedStyle() const;
  55.  
  56.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  57.                    ostream& src,
  58.                    MMCodeGenerationParms& pGenParms );
  59.  
  60.     virtual void GenClassName( WString & className ) const;
  61.  
  62.     protected:
  63.         virtual WStyle CheckExtraStyles(WStyle style);
  64. };
  65.  
  66. // needed for mdreader
  67. typedef DTJList DTjava__dot__awt__dot__List__dot__102;
  68. typedef WListBox java__dot__awt__dot__List__dot__102;
  69.  
  70. #endif // _DTJLIST_HPP
  71.